package com.huawei.gamebox.service.infoflow.node;

import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import androidx.annotation.NonNull;
import com.huawei.appmarket.service.infoflow.cards.card.BaseInfoFlowCard;
import com.huawei.appmarket.service.infoflow.cards.node.BaseInfoFlowNode;
import com.huawei.gamebox.service.infoflow.card.InfoFlowGiftListCard;
import com.huawei.secure.android.common.intent.SafeBroadcastReceiver;
import java.util.ArrayList;
import o.ContentManager;
import o.exp.j;
import o.ll;

public class InfoFlowGiftListNode extends BaseInfoFlowNode {
    private InfoFlowGiftListCard ˊ;
    private c ॱॱ;

    class c extends SafeBroadcastReceiver {
        final /* synthetic */ InfoFlowGiftListNode ˎ;

        private c(InfoFlowGiftListNode infoFlowGiftListNode) {
            this.ˎ = infoFlowGiftListNode;
        }

        public void onReceiveMsg(Context context, Intent intent) {
            if ("com.huawei.gamebox.refreshBuoyGiftCard".equals(intent.getAction())) {
                this.ˎ.ˊ.ˊ(intent.getStringExtra("refresh.observer.id"), intent.getStringExtra("refresh.observer.value"));
            }
        }
    }

    public InfoFlowGiftListNode(Context context) {
        super(context);
    }

    public void ॱˊ() {
        super.ॱˊ();
        ॱˋ();
    }

    public void ॱˎ() {
        super.ॱˎ();
        ᐝॱ();
    }

    public int ˋ() {
        return j.ˎˏ;
    }

    @NonNull
    public BaseInfoFlowCard ˎ() {
        this.ˊ = new InfoFlowGiftListCard(this.ॱ);
        return this.ˊ;
    }

    public boolean ॱ() {
        return true;
    }

    public ArrayList<String> z_() {
        return this.ˊ != null ? this.ˊ.ˊ() : null;
    }

    protected void ॱˋ() {
        this.ॱॱ = new c();
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction("com.huawei.gamebox.refreshBuoyGiftCard");
        ll.ˏ(ContentManager.getInstant().getContext().getApplicationContext()).ˏ(this.ॱॱ, intentFilter);
    }

    private void ᐝॱ() {
        if (this.ॱॱ != null) {
            ll.ˏ(ContentManager.getInstant().getContext().getApplicationContext()).ˋ(this.ॱॱ);
        }
    }
}
